package net.easyjava.tools;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by wxnacy on 15/12/18.
 */
public class BaseManager extends Base {
    private static final long serialVersionUID = 2977812440328111206L;
    private HttpServletRequest request;
    public void init(HttpServletRequest request){
        this.request = request;
    }


    public String getParam(String key){
        Map<String,String[]> params = request.getParameterMap();
        return params.get(key)[0];
    }

}
